package edu.sctu.practice.class01.renpingan.assign01.circle;

/**
 * Created by Administrator on 2015/10/8.
 */
public class RunMain {
    public static void main(String[] args) {

        int circlenumber=0;
       Deal deal = new Deal();

        Circle circle = deal.showCircleInfo(2);
        circlenumber = circle.numOfObjects;


        Circle circle1 = deal.showCircleInfo(3);
        circlenumber =circlenumber+ circle1.numOfObjects;

        Circle circle2 =deal.showCircleInfo(4);
        circlenumber = circlenumber+circle2.numOfObjects;

        System.out.println("一共有"+circlenumber+"个圆");

    }
}
